package com.entor.model;

import java.util.Date;
import java.util.List;

public class Message extends Comment{
	
	private String title;
	private String smallTitle;
	private Date createDate;
	private String context;
	private Integer userId;
	private List<EduFile> files;
	
	public Message() {}

	public Message(String title, String smallTitle, Date createDate, String context, Integer userId) {
		super();
		this.title = title;
		this.smallTitle = smallTitle;
		this.createDate = createDate;
		this.context = context;
		this.userId = userId;
	}

	public List<EduFile> getFiles() {
		return files;
	}

	public void setFiles(List<EduFile> files) {
		this.files = files;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSmallTitle() {
		return smallTitle;
	}

	public void setSmallTitle(String smallTitle) {
		this.smallTitle = smallTitle;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "Message [title=" + title + ", smallTitle=" + smallTitle + ", createDate=" + createDate + ", context="
				+ context + ", userId=" + userId + "]";
	}
	

}
